package com.myjava.linkedhashset;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class EntryMapDemo {
    public static void main(String[] args) {
        Map<String, Object> map = new HashMap<>();
        map.put("ls",16);
        map.put("ld",15);
        map.put("lr",18);
        map.put("lw",19);
        Set<Map.Entry<String, Object>> ent = map.entrySet();
        Iterator<Map.Entry<String, Object>> it = ent.iterator();
        while(it.hasNext()){
            Map.Entry<String, Object> en = it.next();
            String key = en.getKey();

            Object value = en.getValue();
            System.out.println(key+"="+value);



        }


    }
}
